package com.xrz.dao;

import com.xrz.pojo.Group;
import com.xrz.pojo.vo.GroupVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.List;

@Mapper
public interface GroupDao {
    int deleteByPrimaryKey(Integer groupId);

    int insert(Group record);

    int insertSelective(Group record);

    Group selectByPrimaryKey(Integer groupId);

    int updateByPrimaryKeySelective(Group record);

    int updateByPrimaryKey(Group record);

    List<Group> getAllGroup();

    List<Group> getMyGroup(Integer userId);

    List<GroupVo> getGroup(String groupName);

    Group selectByGroupName(String groupName);
}